package com.wangijun.yuan.admin.blog.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 私信记录表 保存参数
 * </p>
 *
 * @author Wlf
 * @since 2024-08-26
 */
@Getter
@Setter
@Schema(name = "ChatInfo", description = "私信记录表")
public class ChatInfoUpdateParam {
    @NotNull(message = "主键不可为空")
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "发送人ID")
    private Long sendUserId;

    @Schema(description = "接收人ID")
    private Long receiveUserId;

    @Schema(description = "消息类型")
    private Integer msgType;

    @Schema(description = "消息内容")
    private String msg;

    @Schema(description = "发送时间")
    private LocalDateTime createTime;

    @Schema(description = "是否已读0未读,1已读")
    private Integer readFlag;
}
